body{
    /* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb i {
    margin: 0 8px;
    color: #999;
}

.breadcrumb span {
    color: #333;
}

/* 主要内容区布局 */
.catalog-content {
    display: flex;
    gap: 20px;
}

/* 左侧分类导航 */
.catalog-sidebar {
    width: 240px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-title {
    padding: 15px;
    background: #1890ff;
    color: #fff;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list {
    list-style: none;
}

.category-item {
    border-bottom: 1px solid #f0f0f0;
}

.category-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.category-item.active a,
.category-item a:hover {
    background: #e6f7ff;
    color: #1890ff;
}

.category-item i {
    width: 20px;
    margin-right: 8px;
}

.item-count {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

/* 右侧商品区域 */
.catalog-main {
    flex: 1;
}
/* 商品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 127%;
    object-fit: cover;
}

.discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4f;
    color: #fff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 12px;
}

.product-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 128%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-hover {
    opacity: 1;
}

.quick-view {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    margin-bottom: -16px;
    margin-top: 50px;
    height: 40px;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.product-price {
    margin-bottom: 10px;
}

.current-price {
    color: #ff4d4f;
    font-size: 18px;
    font-weight: bold;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
    font-size: 14px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    padding: 8px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-to-wishlist {
    width: 80px;
    background: #ff4d4f;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color:white;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn.active,
.page-btn:hover:not(:disabled) {
    color: #1890ff;
    border-color: #1890ff;
}

.page-btn:disabled {
    cursor: not-allowed;
    color: #d9d9d9;
}

.page-dots {
    color: #999;
}

.page-info {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

.page-size {
    padding: 4px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-left: 8px;
}
@media screen and (max-width: 768px) {
    .catalog-content {
        flex-direction: column;
    }

    .catalog-sidebar {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-toolbar {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

}

